package com.lxp.project.function.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lxp.framework.aspectj.lang.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 项目管理对象 fn_project
 *
 * @author 乐乐
 * @date 2022-05-04
 */
@Data
@TableName("fn_project")
@EqualsAndHashCode(callSuper = false)
public class FnProject {
    /**
     * 项目编号
     */
    @Excel(name = "项目编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 项目名称
     */
    @Excel(name = "项目名称")
    @TableField(value = "name")
    private String name;
    /**
     * 项目时间
     */
    @Excel(name = "项目时间")
    @TableField(value = "time")
    private Integer time;
    /**
     * 项目简介
     */
    @Excel(name = "项目简介")
    @TableField(value = "introduct")
    private String introduct;
    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    @TableField(value = "product_id")
    private Long productId;
    /**
     * 产品数量
     */
    @Excel(name = "产品数量")
    @TableField(value = "product_count")
    private Long productCount;
    /**
     * 单价
     */
    @Excel(name = "单价")
    @TableField(value = "product_price")
    private Double productPrice;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "create_time")
    private Date createTime;
}
